#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        for (int i = 0; i < nums.size(); i++) {
            for (int j = i+1; j < nums.size(); j++) {
                if (nums[i] + nums[j] == target) {
                    return vector<int>{i, j};
                }
            }
        }
        return vector<int>{0};
    }
};

int main() {
    std::cout << "Hello, World!" << std::endl;
    vector<int> nums{2, 7, 11, 15};
    auto res = Solution().twoSum(nums, 9);
    cout << res[0] << res[1];
    return 0;
}